package com.dietmanager.model;

/**
 * The Class Food is a leaf of FoodModel.
 */
public class Food extends FoodModel {
	private static final long serialVersionUID = -5933899368945543918L;

	/**
	 * Instantiates a new food.
	 *
	 * @param name the name
	 * @param amount the amount
	 */
	public Food(String name, int amount) {
		super(name, amount);
	}
	
	/**
	 * Instantiates a new food.
	 *
	 * @param name the name
	 * @param amount the amount
	 * @param calories the calories
	 */
	public Food(String name, int amount, int calories) {
		super(name, amount);
		setCalories(calories);
	}

	/**
	 * Sets the protein.
	 *
	 * @param protein the new protein
	 */
	public void setProtein(int protein) {
		this.protein = protein;
	}

	/**
	 * Sets the carbohydrates.
	 *
	 * @param carbohydrates the new carbohydrates
	 */
	public void setCarbohydrates(int carbohydrates) {
		this.carbohydrates = carbohydrates;
	}

	/**
	 * Sets the fat.
	 *
	 * @param fat the new fat
	 */
	public void setFat(int fat) {
		this.fat = fat;
	}

	/**
	 * Sets the calories.
	 *
	 * @param calories the new calories
	 */
	public void setCalories(int calories) {
		this.calories = calories;
	}

}
